//
//  SkyButton.m
//  footprint
//
//  Created by SongYakun on 15/12/25.
//  Copyright © 2015年 SongYakun. All rights reserved.
//

#import "SkyButton.h"

@implementation SkyButton

- (void)setFrame:(CGRect)frame Title:(NSString *)title BackgroundColor:(UIColor *)color Image:(NSString *)image andSelectedImage:(NSString *)selectedImage {
    self.frame = frame;
    [self setTitle:title forState:UIControlStateNormal];
    [self setBackgroundColor:color];
    [self setImage:[UIImage imageNamed:image] forState:UIControlStateNormal];
    [self setImage:[UIImage imageNamed:selectedImage] forState:UIControlStateSelected];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
